import { Routes } from '@angular/router';

import { AdminComponent } from './admin.component';
import { HomeComponent } from './home/home.component';
import { AdminformComponent } from './adminform/adminform.component';
import {PipeComponent} from "./pipe/pipe.component";

export const ROUTES_CONFIG:Routes=[
    {
        path:'',component:AdminComponent,
        children:[
            {
                path:'',component:HomeComponent//pathMatch:'full',redirectTo:'/admin/home'
            },{
                path:'home',component:HomeComponent
            },{
                path:'form',component:AdminformComponent
            },{
                path:'pipe',component:PipeComponent
            }
        ]
    }
]